package arch.coal.ellipse.security.utils;

import java.text.CharacterIterator;
import java.text.StringCharacterIterator;

public class StringUtil {

	public static String check(String in){
		if( in != null && in.length()>0 ) {
			
			//String temp = new String();
			StringBuffer sb = new StringBuffer();
			StringCharacterIterator sci = new StringCharacterIterator(in);
		     for(char c = sci.first(); c != CharacterIterator.DONE; c = sci.next()) {
		    	 sb.append(c);
		     }

			//return in.trim();
			return sb.toString();
		}
		return "";
	}
	
}
